<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>检索算法---顺序查找</title>
</head>
<body>
<script src="search.js"></script>
<script>

    //验证顺序查找
    var nums=[];
    for(var i=0;i<10;i++){
        nums[i]=Math.floor(Math.random()*101);
    }
    disArr(nums);
    console.log("\n");
    console.log(seqSearch(nums,11));
    //验证正确。
    if(ziBetterSearch(nums,11)){
        disArr(nums);
    }else{
        console.log("63 is not defined;")
    }

</script>
</body>
</html>